package com.springboot.controller;
import com.springboot.pojo.DeviceInfo;
import com.springboot.pojo.Result;
import com.springboot.service.DeviceService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController
@RequestMapping("/admin")
public class DeviceController {
    @Autowired
    private DeviceService deviceService;

    @GetMapping("/deviceInfo")
    public Result deviceInfoSearch(){
        return Result.success(deviceService.deviceInfoSearch());
    }

}